<div class='row'>

    <div class="col-md-3">
    </div>
    <div class="col-md-6">
        <table class="table table-hover">
            <tr>
                <td>Title:</td>
                <td><?php echo CHtml::encode($data['title']); ?></td>

            </tr>
            <tr>
                <td>Category:</td>
                <td><?php echo Ideality::getCategoryName($data['cate_id']); ?></td>
            </tr>
            <tr>
                <td>Author:</td>
                <td><?php echo Ideality::getUserName($data['user_id']); ?></td>
            <tr/>

            <?php if ($trans_type == Param::TRANS_TYPE_FULL_PRICE) {
                ?>
                <tr>
                    <td>Full Price:</td>
                    <td> <?php echo CHtml::encode($data['full_price']); ?></td>
                </tr>
            <?php } ?>
            <?php if ($trans_type == Param::TRANS_TYPE_PARTIAL_PRICE) {
                ?>
                <tr>
                    <td>Partial Price:</td>
                    <td><?php echo CHtml::encode($data['partly_price']); ?></td>
                </tr>
            <?php } ?>
            <tr>
                <td>Description:</td>
                <td>
                    <?php if ($role != 'ADMIN' && $role != 'PREMIUM') {
                        echo Param::limitWord($data['short_description'], 20);
                    } else {
                        echo $data['short_description'];
                    } ?>
                </td>
            </tr>
            <tr>
                <td>Transaction Type:</td>
                <td><?php
                    $trans_name = '';
                    if ($trans_type == Param::TRANS_TYPE_PARTIAL_PRICE) {
                        $trans_name = 'Partial';
                    } else {
                        $trans_name = 'Full';
                    }
                    echo CHtml::encode($trans_name, array('disabled' => 'disabled')); ?>
                </td>
            </tr>

        </table>
        <?php
        //echo CHtml::submitButton('Buy', array('submit' => array('/site/createOrder','ideality_id'=>$data['id'],'trans_type'=>$trans_type), 'class' => 'btn btn-primary', 'confirm' => 'Do you want to buy?'));
        echo CHtml::submitButton('Buy', array('submit' => array('/site/createOrder','ideality_id'=>$data['id'],'trans_type'=>$trans_type), 'class' => 'btn btn-success', 'confirm' => 'Do you want to buy?'));
        ?>

    </div>
    <div class="col-md-3">
    </div>

</div>